package com.test.expection;


import com.test.code.IErrorCode;
import lombok.Data;

@Data

public class MyException extends RuntimeException{
    private IErrorCode errorCode;

    public MyException(IErrorCode errorCode) {
        this();
        this.errorCode = errorCode;
    }

    public MyException() {
    }

    public MyException(String message) {
        super(message);
    }

    public MyException(String message, Throwable cause) {
        super(message, cause);
    }

    public MyException(Throwable cause) {
        super(cause);
    }

    public MyException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
